package com.framework.Module.REIM.imgroup;

import com.framework.Table.Table;
import com.framerock.baselib.Rock;

public class Tableimgroup extends  Table{
    

    protected void initTable() {
        this.tablename   = "imgroup";
        this.tablenamesm = "会话群";

        this.flowsetMap  = Rock.getMap(new String[]{
                "type", "REIM",
                "sort", "952",
                "isxt", "2",
                "sortdir","id desc",
                "imgurl","https://xinhu-1251238447.file.myqcloud.com/img/2021.png",
                "istj","1"
        });
        this.addfields("face", "varchar(200)", "", "头像", new String[]{
                "islb","1",
                "fieldstype","uploadimg"
        });
        this.addfields("type", "tinyint(1)", "1", "类型@0|平台群,1|单位群组",new String[]{
                "fieldstype","select"
        });
        this.addfields("name", "varchar(100)", "", "群名", new String[]{
                "islb","1",
                "isss","1"
        });
        this.addfields("bqname", "varchar(50)", "", "标签", new String[]{
                "islu","1",
        });
        this.addfields("bqcolor", "varchar(50)", "", "标签颜色", new String[]{
                "islu","1",
        });
        this.addfields("explain", "varchar(500)", "", "说明公告", new String[]{
                "islb","0",
                "isss","0",
                "fieldstype","textarea"
        });

        this.addfields("optdt", "datetime", null, "操作时间", new String[]{
                "islb","1",
        });
        this.addfields("aid", "int(11)", "0", "用户ID", new String[]{
                "islb","0",
                "islu","0",
        });
        this.addfields("uid", "int(11)", "0", "平台用户", new String[]{
                "islb","0",
                "islu","0",
        });
        this.addfields("cid", "int(11)", "0", "对应单位", new String[]{
                "islb","0",
                "islu","0",
        });
        this.addfields("gtype", "tinyint(1)", "0", "群组类型@0|会话群,1|会话群组,2|用户组", new String[]{
                "fieldstype","select"
        });
        this.addfields("ushu", "int(11)", "0", "人员数", new String[]{
                "islb","1"
        });

        this.addfields("cid", "KEY", "`cid`", "单位ID");
    }
}
